package main

import "fmt"

func main() {
	amount := 6
	double(&amount)
	fmt.Println(amount)
	fmt.Println("==================================")

	hujianliboole := true
	fmt.Println(hujianliboole)
	negate(&hujianliboole)
	fmt.Println(hujianliboole)
	fmt.Println("==================================")

	jiliboole := false
	fmt.Println(jiliboole)
	negate(&jiliboole)
	fmt.Println(jiliboole)

}

func double(num *int) {
	*num *= 2
}

func negate(myboole *bool) {
	*myboole = !*myboole
}
